/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.db.zugang;

import de.mnit.basis.db.konstant.DBMS;
import de.mnit.basis.sys.datei.S_Datei;

/**
 * @author Michael Nitsche
 * 10.08.2008	Erstellt
 */
public class ZugangHSQLDB extends DBZugang {

	public ZugangHSQLDB(String host, String db, String user, String pass) {
		super(DBMS.HSQLDB, host, db, user, pass);
	}


	public static ZugangHSQLDB neu(String host, String db, String user, String pass) {
		return new ZugangHSQLDB(host, db, user, pass);
	}

	/** Mem **/
	public static ZugangHSQLDB neu() {
		return new ZugangHSQLDB("", "", "sa", "");
	}

	/** Datei **/
	public static ZugangHSQLDB neu(String datei) {
		return new ZugangHSQLDB("", datei, "sa", "");
	}

	/** Datei **/
	public static ZugangHSQLDB neu(S_Datei datei) {
		return neu(datei.gPfadKomplett());
	}

}
